minios: fix bug in lseek for mini-os
authorMatthew Fioravante <matthew.fioravante@jhuapl.edu>
Mon, 19 Nov 2012 12:59:47 +0000 (12:59 +0000)
committerMatthew Fioravante <matthew.fioravante@jhuapl.edu>
Mon, 19 Nov 2012 12:59:47 +0000 (12:59 +0000)
commit7967bbb45e08d7d3bd4c5ef8e3df6e428a5918fd
tree5dd78b1c1928998dab63797633b74711bc38cb8f
parent2ac19a6b381c9a9cd57afc107af95761bbddb5e0
minios: fix bug in lseek for mini-os

lseek always used files[fd].file.offset. It should
use the offset of whatever union member is actually
being used.

Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
extras/mini-os/lib/sys.c